def getNumber(upperCaseLetter):
    str = ''
    for c in upperCaseLetter.upper():
        if 'A'<= c and c <= 'C':
            str += '2'
        elif 'D'<=c and c <= 'F':
            str += '3'
        elif 'G'<=c and c <= 'I':
            str += '4'
        elif 'J'<=c and c <= 'L':
            str += '5'
        elif 'M'<=c and c <= 'O':
            str += '6'
        elif 'P'<=c and c <= 'S':
            str += '7'
        elif 'T'<=c and c <= 'V':
            str += '8'
        elif 'W'<=c and c <= 'Z':
            str += '9'
        else:
            str += c
    return str

str = input("请输入一个字符串：")
print(getNumber(str))